package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 题库的查询对象 question_bank
 * 
 * @author lsc
 * @date 2025-03-06
 */
public class QuestionBank extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 题库名称 */
    @Excel(name = "题库名称")
    private String bankName;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 试题总量 */
    @Excel(name = "试题总量")
    private Long totalQuestions;

    /** 单选题 */
    @Excel(name = "单选题")
    private Long singleChoice;

    /** 多选题 */
    @Excel(name = "多选题")
    private Long multipleChoice;

    /** 判断题 */
    @Excel(name = "判断题")
    private Long trueFalse;

    /** 填空题 */
    @Excel(name = "填空题")
    private Long fillInTheBlank;

    /** 简答题 */
    @Excel(name = "简答题")
    private Long shortAnswer;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBankName(String bankName) 
    {
        this.bankName = bankName;
    }

    public String getBankName() 
    {
        return bankName;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setTotalQuestions(Long totalQuestions) 
    {
        this.totalQuestions = totalQuestions;
    }

    public Long getTotalQuestions() 
    {
        return totalQuestions;
    }
    public void setSingleChoice(Long singleChoice) 
    {
        this.singleChoice = singleChoice;
    }

    public Long getSingleChoice() 
    {
        return singleChoice;
    }
    public void setMultipleChoice(Long multipleChoice) 
    {
        this.multipleChoice = multipleChoice;
    }

    public Long getMultipleChoice() 
    {
        return multipleChoice;
    }
    public void setTrueFalse(Long trueFalse) 
    {
        this.trueFalse = trueFalse;
    }

    public Long getTrueFalse() 
    {
        return trueFalse;
    }
    public void setFillInTheBlank(Long fillInTheBlank) 
    {
        this.fillInTheBlank = fillInTheBlank;
    }

    public Long getFillInTheBlank() 
    {
        return fillInTheBlank;
    }
    public void setShortAnswer(Long shortAnswer) 
    {
        this.shortAnswer = shortAnswer;
    }

    public Long getShortAnswer() 
    {
        return shortAnswer;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bankName", getBankName())
            .append("creator", getCreator())
            .append("totalQuestions", getTotalQuestions())
            .append("singleChoice", getSingleChoice())
            .append("multipleChoice", getMultipleChoice())
            .append("trueFalse", getTrueFalse())
            .append("fillInTheBlank", getFillInTheBlank())
            .append("shortAnswer", getShortAnswer())
            .append("createDate", getCreateDate())
            .toString();
    }
}
